﻿// --------------------------------------------------------------------------------------
// <copyright file="Class1.cs" company="NGroup">
// Copyright (c) NGroup. All rights reserved.
// </copyright>
// --------------------------------------------------------------------------------------
// <history>
//     <change who="Bui Thanh Nam" date="2014.01.03">Create</change>
// </history>
// --------------------------------------------------------------------------------------

namespace NGroup.VTL.Core.Http
{
    using System;
    using System.Web;

    public class NGroupHeaderModule : IHttpModule
    {
        public void Init(HttpApplication context)
        {
            context.PreSendRequestHeaders += OnPreSendRequestHeaders;
        }

        public void Dispose() { }

        private void OnPreSendRequestHeaders(object sender, EventArgs e)
        {
            // HttpContext.Current.Response.Headers.Remove("Server");
            // Or you can set something funny
            HttpContext.Current.Response.Headers.Remove("Server");
        }
    }
}
